package ethans.springCloud.dao;

import feign.ethan.springCloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ethan
 */
@Mapper
@Repository
public interface DeptDao {

    /**
     * zeng
     */
    Boolean insert(@Param("dept") Dept dept);

    /**
     * cha
     */
    Dept selectOne(@Param("id") Integer id);

    /**
     * all
     */
    List<Dept> listAll();

    /**
     * shan
     */
    Integer delete(@Param("id") Integer id);

}
